package com.weibo4j.api.response.favourite;

import com.weibo4j.api.WeiboResponse;

public class FavouritesBatchDeleteResponse extends WeiboResponse<Boolean> {

    private Boolean model;

    @Override
    public Boolean getModel() {
        if (success && model == null) {
            isSuccess();
        }
        return model;
    }

    @Override
    public boolean isSuccess() {
        boolean isSuccess = super.isSuccess();
        if (isSuccess && model == null) {
            model = result.getBoolean("result");
        }
        return isSuccess;
    }

}
